<?php
/**
 * Created by PhpStorm.
 * User: Powerless
 * Date: 2017-4-21
 * Time: 14:15
 */

namespace app\fans\controller;

use cmf\controller\HomeBaseController;
use think\Request;

class PersonalController extends HomebaseController
{
    public function index()
    {
        return $this->fetch();
    }

    public function postData()
    {
        $url = input("post.url");
        $data = Request::instance()->post('data/a');
        if($url && $data){
            $this->httpPost(HTTP_WEB.$url,$data);
        }
    }

    public function focus()
    {
        return $this->fetch("focus");
    }

    public function gift()
    {
        return $this->fetch("gift");
    }

    public function imgChange()
    {
        return $this->fetch("imgChange");
    }

    public function infoChange()
    {
        return $this->fetch("infoChange");
    }

    public function leval()
    {
        return $this->fetch("leval");
    }

    public function money()
    {
        return $this->fetch("money");
    }

    public function package()
    {
        return $this->fetch("package");
    }
    public function headPicChange()
    {
        $this->assign("spost", HTTP_WEB);
        $this->assign("simgs", HTTP_IMG.VERSION_LIVESTAR.'/Default/');
        return $this->fetch("headPicChange");
    }
}